e72384b97dc73cdc558002897d27ff300141b275,src/main/java/org/walkmod/javalang/visitors/DumpVisitor.java,DumpVisitor,visit,#AnnotationDeclaration#Object#,1982
Before Change
}
public void visit(AnnotationDeclaration n, Object arg) {
printPreviousComments(n, arg);
JavadocComment comment = n.getJavaDoc();
printJavadoc(comment, arg);
if (comment != null && !n.isNewNode() && !comment.isNewNode()) {
After Change
n.getCatchBlock().accept(this, arg);
}
public void visit(AnnotationDeclaration n, Object arg) {
Node comment = n.getJavaDoc();
if (comment != null) {
printPreviousComments(comment, arg);
}
printJavadoc((JavadocComment) comment, arg);
List<Node> comments = printPreviousComments(n, arg);
if (comments != null && !comments.isEmpty()) {
comment = comments.get(comments.size() - 1);
}